package com.teng.mylibrary.ui.adapter

import com.teng.mylibrary.R
import com.teng.mylibrary.base.BaseVBAdapter
import com.teng.mylibrary.base.BaseViewHolder
import com.teng.mylibrary.databinding.ItemIpAddressBinding

/**
 * Description:    IP配置列表
 * Author:         liuteng
 * CreateDate:     2021年12月3日
 * UpdateRemark:   更新说明
 */
class IPAddressAdapter(val data: ArrayList<String>) : BaseVBAdapter<String>(data) {
    override fun getItemView(viewType: Int): Int {
        return R.layout.item_ip_address
    }

    override fun onBindHolder(holder: BaseViewHolder, position: Int) {
        val binding = holder.dataBinding as ItemIpAddressBinding
        binding.address = mList[position]
    }


}